public class TextIssues1 {
    public static void main(String[] args) {
        double sum = 0;
        int j = -1;
        for (int i = 1; i <= 100 ; i++) {
            j = j * -1;
            sum += (1.0/i)*(j);
        }
        System.out.println(sum);
    }
}
